package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;

/**
 * 广告管理信息对象 advertising_management
 *
 * @author ruoyi
 * @date 2024-12-12
 */
@TableName("advertising_management")
public class AdvertisingManagement
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @TableId
    private Integer id;

    /** 广告标题 */
    @Excel(name = "广告标题")
    private String title;

    /** 广告描述 */
    @Excel(name = "广告描述")
    private String description;

    /** 广告图片的URL链接 */
    @Excel(name = "广告图片的URL链接")
    private String imageUrl;
    private String imgPath;//文件路径

    /** 广告视频的URL链接 */
    @Excel(name = "广告视频的URL链接")
    private String videoUrl;

    /** 广告被点击的次数 */
    @Excel(name = "广告被点击的次数")
    private Long clicks;
    //广告所属类名
    private String className;
    private Date createTime;

    /**  广告展示的次数 */
    @Excel(name = " 广告展示的次数")
    private Long impressions;
    //上传图片
    @TableField(exist = false)
    private MultipartFile file;

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setImageUrl(String imageUrl)
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl()
    {
        return imageUrl;
    }
    public void setVideoUrl(String videoUrl)
    {
        this.videoUrl = videoUrl;
    }

    public String getVideoUrl()
    {
        return videoUrl;
    }
    public void setClicks(Long clicks)
    {
        this.clicks = clicks;
    }

    public Long getClicks()
    {
        return clicks;
    }
    public void setImpressions(Long impressions)
    {
        this.impressions = impressions;
    }

    public Long getImpressions()
    {
        return impressions;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("description", getDescription())
            .append("imageUrl", getImageUrl())
            .append("videoUrl", getVideoUrl())
            .append("clicks", getClicks())
            .append("impressions", getImpressions())
            .toString();
    }
}
